package com.ccys.cms.controller.corporateAndInsurance;


import com.ccys.cms.service.corporateAndInsurance.CDMPEnrolmentService;
import com.ccys.common.vo.ResponseResult;
import com.ccys.db.dto.corporateAndInsurance.CDMPEnrolmentDto;
import com.ccys.db.vo.corporateAndInsurance.CDMPEnrolmentVo;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/corporateAndInsurance")
@Api(tags = "cdmpEnrolment")
public class CDMPEnrolmentController {

    @Resource
    private CDMPEnrolmentService service;

    @ApiOperation("查询分页")
    @GetMapping("cdmpEnrolment")
    public ResponseResult<PageInfo<CDMPEnrolmentVo>, Object> getPage(CDMPEnrolmentDto dto) {

        return service.getPage(dto);
    }
}
